package com.pojo;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity
public class Government implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int governmentId;
	private String governmentName;
	private String description;
	private County county;
	private String isActive;

	@Id
	@GeneratedValue
	public int getGovernmentId() {
		return governmentId;
	}

	public void setGovernmentId(int governmentId) {
		this.governmentId = governmentId;
	}

	public String getGovernmentName() {
		return governmentName;
	}

	public void setGovernmentName(String governmentName) {
		this.governmentName = governmentName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@ManyToOne
	@JoinColumn(name = "countyId")
	public County getCounty() {
		return county;
	}

	public void setCounty(County county) {
		this.county = county;
	}

	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}

	public Government(int governmentId, String governmentName,
			String description, County county, String isActive) {
		super();
		this.governmentId = governmentId;
		this.governmentName = governmentName;
		this.description = description;
		this.county = county;
		this.isActive = isActive;
	}

	public Government() {

	}
}
